home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: news.spb.su!demos!pluscom!usenet
- From: sergeyp@albea.ugatu.ac.ru (Sergey Pavlov)
- Subject: Re: Borland CmExit() - conditions where it won't work?
- X-Newsreader: Forte Free Agent 1.0.82
- Sender: usenet@news.rinet.ru (Superuser)
- Nntp-Posting-Host: albea.ugatu.ac.ru
- Organization: Albea
- Message-ID: <DMrxE0.Dzu@news.rinet.ru>
- References: <bshimkin-1202962147440001@bshimkin.tiac.net>
- Date: Wed, 14 Feb 1996 16:22:30 GMT
-
- bshimkin@tiac.net (Brian Shimkin) wrote:
-
-
- >Using Borland C++, during window initialization, I detect an error
- >condition, post an acknowledge box, set the acknowledge box to be the main
- >window and then call CmExit(). However, CmExit() does not cause the
- >application to exit.
-
- >The documentation states that if called with the main window, CmExit will
- >cause the application will exit.
-
- >Is it perhaps too soon for my application to call CmExit? Is there
- >another alternative to force an early application termination?
-
- > Brian Shimkin
- > bshimkin@tiac.net
-
- Best way:
-
- throw some exception from error point. If no catches, program will be
- aborted.
-
-
-
-